/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_tj_incomingbycontent")
//@NamedQueries({@NamedQuery(name = "TTjIncomingbycontent.findAll", query = "SELECT t FROM TTjIncomingbycontent t"), @NamedQuery(name = "TTjIncomingbycontent.findById", query = "SELECT t FROM TTjIncomingbycontent t WHERE t.id = :id"), @NamedQuery(name = "TTjIncomingbycontent.findByContentid", query = "SELECT t FROM TTjIncomingbycontent t WHERE t.contentid = :contentid"), @NamedQuery(name = "TTjIncomingbycontent.findByCtype", query = "SELECT t FROM TTjIncomingbycontent t WHERE t.ctype = :ctype"), @NamedQuery(name = "TTjIncomingbycontent.findByCyear", query = "SELECT t FROM TTjIncomingbycontent t WHERE t.cyear = :cyear"), @NamedQuery(name = "TTjIncomingbycontent.findByCmonth", query = "SELECT t FROM TTjIncomingbycontent t WHERE t.cmonth = :cmonth"), @NamedQuery(name = "TTjIncomingbycontent.findByPricetype", query = "SELECT t FROM TTjIncomingbycontent t WHERE t.pricetype = :pricetype"), @NamedQuery(name = "TTjIncomingbycontent.findByIncoming", query = "SELECT t FROM TTjIncomingbycontent t WHERE t.incoming = :incoming"), @NamedQuery(name = "TTjIncomingbycontent.findByContentname", query = "SELECT t FROM TTjIncomingbycontent t WHERE t.contentname = :contentname")})
public class TTjIncomingbycontent implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;
    @Column(name = "contentid")
    private String contentid;
    @Column(name = "ctype")
    private String ctype;
    @Column(name = "cyear")
    private String cyear;
    @Column(name = "cmonth")
    private String cmonth;
    @Column(name = "pricetype")
    private String pricetype;
    @Column(name = "incoming")
    private Integer incoming;
    @Column(name = "contentname")
    private String contentname;

    public TTjIncomingbycontent() {
    }

    public TTjIncomingbycontent(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContentid() {
        return contentid;
    }

    public void setContentid(String contentid) {
        this.contentid = contentid;
    }

    public String getCtype() {
        return ctype;
    }

    public void setCtype(String ctype) {
        this.ctype = ctype;
    }

    public String getCyear() {
        return cyear;
    }

    public void setCyear(String cyear) {
        this.cyear = cyear;
    }

    public String getCmonth() {
        return cmonth;
    }

    public void setCmonth(String cmonth) {
        this.cmonth = cmonth;
    }

    public String getPricetype() {
        return pricetype;
    }

    public void setPricetype(String pricetype) {
        this.pricetype = pricetype;
    }

    public Integer getIncoming() {
        return incoming;
    }

    public void setIncoming(Integer incoming) {
        this.incoming = incoming;
    }

    public String getContentname() {
        return contentname;
    }

    public void setContentname(String contentname) {
        this.contentname = contentname;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TTjIncomingbycontent)) {
            return false;
        }
        TTjIncomingbycontent other = (TTjIncomingbycontent) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TTjIncomingbycontent[id=" + id + "]";
    }

}
